<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
          name="viewport">
    <meta content="ie=edge" http-equiv="X-UA-Compatible">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
<div id="app">
    <div v-if="ishow">helloworld</div>
    <div v-show="ishow">你好</div>
    <button @click="ishow=!ishow">显示/隐藏</button>
</div>
<script>
    new Vue({
        "el":"#app",
        "data"(){
            return{
                "ishow":true
            }
        }
    })
</script>
</body>
</html>
